import Vue from 'vue'
import App from './App'

import Vuex from 'vuex';
console.log(Vuex)
Vue.use(Vuex)

import config from 'common/config.js'
Vue.prototype.config = config

import lib from 'common/lib.js'
Vue.prototype.lib = lib

var store = new Vuex.Store({
	state:{
		tabindex:0
	},
	mutations:{
		changeIndex(state,index){
			state.tabindex = index
		}
	},
	getters:{
		getTabIndex(state){
			return state.tabindex
		}
	}
})

Vue.prototype.$store = store

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App,
	config,
	lib
})
app.$mount()
